package mapper;

import entity.Brand;
import entity.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    int deleteByPrimaryKey(Integer brand_id);

    int insert(Brand record);

    int insertSelective(Brand record);

    Brand selectByPrimaryKey(Integer brand_id);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKeyWithBLOBs(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> queryAllBrand();
    void updateIs_show(@Param("brand_id") Integer brand_id, @Param("is_show") Integer is_show);
    void updateIs_manufacturer(@Param("brand_id") Integer brand_id,@Param("is_manufacturer") Integer is_manufacturer);
    int deleteBrandByBrand_id(@Param("brandLists") List<Integer> brandLists);
    List<Brand> queryBrandByBrand_name(String brandName);
    Brand queryBrandByBrand_nameReturnObj(String brand_name);
}